// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.AssetsExpenseDao;
import com.liuxinlong.modules.entity.ExpenseOrder;
import com.liuxinlong.modules.mapper.AssetsExpenseMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * AssetsExpenseDaoImpl
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2024年01月09日
 */
@Service
public class AssetsExpenseDaoImpl extends ServiceImpl<AssetsExpenseMapper, ExpenseOrder> implements AssetsExpenseDao {

    @Override
    public List<ExpenseOrder> pageAssetsExpenseInfo(Map<String, Object> queryParam) {
        return baseMapper.pageAssetsExpenseInfo(queryParam);
    }

    @Override
    public int getAssetsExpenseInfoCount(Map<String, Object> queryParam) {
        return baseMapper.getAssetsExpenseInfoCount(queryParam);
    }

    @Override
    public List<ExpenseOrder> getAssetsExpenseList(Map<String, Object> queryParam) {
        return new ArrayList<>();
    }

    @Override
    public void deleteAssetsExpenseById(String assetsId) {
        baseMapper.deleteAssetsExpenseById(assetsId);
    }

    @Override
    public List<ExpenseOrder> getProjectOrderList(String year,List<String> projectList) {
        return baseMapper.getProjectOrderList(year, projectList);
    }

    @Override
    public List<ExpenseOrder> getDepOrderList(String year, String department) {
        return baseMapper.getDepOrderList(year, department);
    }

}
